﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgramShortcuts.Components.Services;

namespace ProgramShortcuts
{
	class Program
	{
		static void Main(string[] args)
		{

			using (var container = Bootstrap.Components())
			{
				
				while (true)
				{
					var consoleKeyInfo = Console.ReadKey(true);

					var shortcutService = container.Resolve<IConsoleInputService>();
					shortcutService.Handle(consoleKeyInfo);
					

					if (consoleKeyInfo.Key == ConsoleKey.Escape)
					{
						break;
					}
				}
			}
		}
	}
}
